﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Entity;
using PBOffice.DAL;


namespace PBOffice.BLL
{
   public class DiplomaManager
    {
       /// <summary>
       /// 查询所有学历信息
       /// </summary>
       /// <returns></returns>
       public List<UserDiploma> ShowAllDiplomaInfo()
       {
           using (MyOfficeEntities myOffice = new MyOfficeEntities())
           {
               var diploma = from d in myOffice.UserDiplomas
                            select d;             //查询所有学历信息
               return diploma.ToList();               //返回学历信息集合
           }
       }
    }
}
